package com.zx.web.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity：测试CURD表 [engine:InnoDB,type:BASE TABLE,catalog:def,schema:file,name:test_curd,auto:1].
 * @author Ken
 * @since 2017-04-23 22:41
 * @version v1.0.0
 */
@Entity
@Table(name = "test_curd")
public class Curd implements Serializable {

    private static final long serialVersionUID = 1L;

    /** */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;// ,key:PRI,null:NO,type:bigint,charset:,default: ,maxLen:

    /** 名字*/
    @Column(name = "username")
    private String username;// 名字,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:20

    /** 性别，默认为null, 0 女，1男*/
    @Column(name = "sex")
    private Boolean sex;// 性别，默认为null, 0 女，1男,key:,null:YES,type:bit,charset:,default: ,maxLen:

    /** 年龄*/
    @Column(name = "age")
    private Integer age;// 年龄,key:,null:YES,type:tinyint,charset:,default: ,maxLen:

    /** 积分*/
    @Column(name = "score")
    private Integer score;// 积分,key:,null:YES,type:int,charset:,default: ,maxLen:

    /** 身高，2位小数*/
    @Column(name = "heigth")
    private Float heigth;// 身高，2位小数,key:,null:YES,type:float,charset:,default: ,maxLen:

    /** 体重*/
    @Column(name = "weight")
    private Double weight;// 体重,key:,null:YES,type:double,charset:,default: ,maxLen:

    /** 估值*/
    @Column(name = "money")
    private BigDecimal money;// 估值,key:,null:YES,type:decimal,charset:,default: ,maxLen:

    /** text类型*/
    @Column(name = "content")
    private String content;// text类型,key:,null:YES,type:text,charset:utf8,default: ,maxLen:65,535

    /** 出生年月日*/
    @Temporal(TemporalType.DATE)
    @Column(name = "birthday")
    private Date birthday;// 出生年月日,key:,null:YES,type:date,charset:,default: ,maxLen:

    /** datetime类型*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_create")
    private Date timeCreate;// datetime类型,key:,null:NO,type:datetime,charset:,default: ,maxLen:

    // @Transient
    // private Object transientFiled;

    public Curd() {}

    /**
     * 获取.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取名字.
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * 设置名字.
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取性别，默认为null, 0 女，1男.
     */
    public Boolean getSex() {
        return this.sex;
    }

    /**
     * 设置性别，默认为null, 0 女，1男.
     */
    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    /**
     * 获取年龄.
     */
    public Integer getAge() {
        return this.age;
    }

    /**
     * 设置年龄.
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取积分.
     */
    public Integer getScore() {
        return this.score;
    }

    /**
     * 设置积分.
     */
    public void setScore(Integer score) {
        this.score = score;
    }

    /**
     * 获取身高，2位小数.
     */
    public Float getHeigth() {
        return this.heigth;
    }

    /**
     * 设置身高，2位小数.
     */
    public void setHeigth(Float heigth) {
        this.heigth = heigth;
    }

    /**
     * 获取体重.
     */
    public Double getWeight() {
        return this.weight;
    }

    /**
     * 设置体重.
     */
    public void setWeight(Double weight) {
        this.weight = weight;
    }

    /**
     * 获取估值.
     */
    public BigDecimal getMoney() {
        return this.money;
    }

    /**
     * 设置估值.
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 获取text类型.
     */
    public String getContent() {
        return this.content;
    }

    /**
     * 设置text类型.
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取出生年月日.
     */
    public Date getBirthday() {
        return this.birthday;
    }

    /**
     * 设置出生年月日.
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * 获取datetime类型.
     */
    public Date getTimeCreate() {
        return this.timeCreate;
    }

    /**
     * 设置datetime类型.
     */
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }
}
